package com.ljkj.lawyer.lawyer.common;

public enum ErrorCodeNum {
    SUCCESS(200,"操作成功"),
    NO_LOGIN(401,"登陆过期"),
    FAIL(500,"操作失败"),
    NO_PERMISSION(211,"权限不足"),
    SERVER_ERROR(10000,"服务器异常"),
    AUTH_ERROR(10001,"认证失败"),
    PARAMS_ERROR(10002,"参数错误"),
    JSON_PARSE_ERROR(10003,"Json解析错误"),
    ILLEGAL_STRING(15001,"非法字符串"),
    UN_KNOW_ERROR(16000,"未知错误"),
    ;


    private int code;
    private String msg;

    ErrorCodeNum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
